package com.yike.user.service;

import com.yike.user.entity.UserConsult;
import com.yike.user.param.UpdateConsultStatus;
import com.yike.user.param.UserConsultPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.param.UserConsultParam;
import com.yike.user.vo.UserConsultVo;

/**
 * 用户咨询 服务类
 *
 * @author Sakura
 * @since 2025-04-25
 */
public interface UserConsultService extends BaseService<UserConsult> {

    /**
     * 保存
     *
     * @param userConsultParam
     * @return
     * @throws Exception
     */
    boolean saveUserConsult(UserConsultParam userConsultParam) throws Exception;

    /**
     * 修改
     *
     * @param userConsult
     * @return
     * @throws Exception
     */
    boolean updateUserConsult(UserConsult userConsult) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteUserConsult(Long id) throws Exception;

    UserConsultVo getUserConsult(Long id) throws Exception;

    /**
     * 获取分页对象
     *
     * @param userConsultPageParam
     * @return
     * @throws Exception
     */
    Paging<UserConsultVo> getUserConsultPageList(UserConsultPageParam userConsultPageParam) throws Exception;

    boolean updateStatus(UpdateConsultStatus updateConsultStatus) throws Exception;

    Integer getUnreadNum() throws Exception;

}
